import request from '@/utils/request'

// 查询户表档案数据视图列表
export function listTerminalsXbView(query) {
    return request({
        url: '/basedata/terminalsXbView/list',
        method: 'get',
        params: query
    })
}

// 查询户表档案数据视图
export function getTerminalsXbViewData(query) {
    return request({
        url: '/basedata/terminalsXbView/getTerminalsXbViewData',
        method: 'get',
        params: query
    })
}

// 查询户表档案数据视图详细
export function getTerminalsXbView(tenantId) {
    return request({
        url: '/basedata/terminalsXbView/' + tenantId,
        method: 'get'
    })
}

// 新增户表档案数据视图
export function addTerminalsXbView(data) {
    return request({
        url: '/basedata/terminalsXbView',
        method: 'post',
        data: data
    })
}

// 修改户表档案数据视图
export function updateTerminalsXbView(data) {
    return request({
        url: '/basedata/terminalsXbView',
        method: 'put',
        data: data
    })
}

// 删除户表档案数据视图
export function delTerminalsXbView(tenantId) {
    return request({
        url: '/basedata/terminalsXbView/' + tenantId,
        method: 'delete'
    })
}
